package com.acegear.horizon.domain.models.constraint;

/**
 * Created by mercury on 2016/12/22.
 */
public enum UserPostType {
    LONGTEXT, TEXT, VIDEO, ADVERTISING;

    public static UserPostType getPostType(Integer type) {
        switch (type) {
            case 1:
                return LONGTEXT;
            case 2:
                return TEXT;
            case 3:
                return VIDEO;
            case 4:
                return ADVERTISING;
            default:
                return TEXT;
        }
    }
}
